﻿import java.util.Scanner;

public class prac_02 {

	public static void main(String[] args) {
		System.out.println("请输入会员积分：");
		Scanner sc = new Scanner(System.in);
		int cusScore = sc.nextInt();
		double discount;

		if(cusScore<2000){
			discount = 0.9;
		}else if(2000<=cusScore&&cusScore<4000){
			discount = 0.8;
		}else if(4000<=cusScore&&cusScore<8000){
			discount = 0.7;
		}else{
			discount = 0.6;
		}System.out.println("该会员享受的折扣是："+discount);
	}
}
